package org.aptech.hdax.easybuy.pojo;

import java.io.Serializable;
import java.util.Objects;

public class ProductCategory implements Serializable {
    private Integer id;
    private String name;
    private Integer parentId;
    private Integer type;
    private String iconClass;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIconClass() {
        return iconClass;
    }

    public void setIconClass(String iconClass) {
        this.iconClass = iconClass;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProductCategory that = (ProductCategory) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(parentId, that.parentId) &&
                Objects.equals(type, that.type) &&
                Objects.equals(iconClass, that.iconClass);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, parentId, type, iconClass);
    }
}
